home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
CON-03A.ZIP
/
WFC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-11-02
|
4KB
|
158 lines
(* Groovy(tm) BBS Software Version 0.01α (c)1995 Grooven Designs *)
(* Conspiracy Waiting for Caller *)
(* Coded by Paul Maggs / Grooven Designs *)
(* Conspiracy v0.02α Waiting For Caller Unit *)
unit wfc;
interface
procedure init_ansi_file;
procedure set_options;
procedure exit;
procedure menu;
procedure run_wfc;
implementation
uses crt,
g_wfc,
configur,
login;
{$R-}
var
i : byte;
options : array[1..8] of string[30];
choice : char;
option : byte;
grid_ref : byte;
cows_come_home : boolean;
procedure init_ansi_file;
begin
clrscr;
write_picture('wfc');
end;
procedure set_options;
begin
options[1]:=' Local Logon ';
options[2]:=' Sysop Logon ';
options[3]:=' Configuration ';
options[4]:=' Exit Conspiracy ';
end;
procedure exit;
begin
clrscr;
writeln('Thanks for using Groovy v0.1α');
halt
end;
procedure menu;
begin
gotoxy(4,6);
textcolor(0);
textbackground(3);
write(options[1]);
option:=1;
grid_ref:=6;
repeat;
choice:=readkey;
case choice of
#13 : if option=1 then begin
textcolor(7);
textbackground(0);
login_user;
end else
if option=2 then begin
end else
if option=3 then begin
textcolor(7);
textbackground(0);
run_config;
run_wfc;
end else
if option=4 then begin
exit;
end;
#27 : exit;
#80 : begin
if option<4 then begin {To enable it to loop}
gotoxy(4,grid_ref);
textbackground(0);
textcolor(7);
write(options[option]);
inc(grid_ref);
gotoxy(4,grid_ref);
textbackground(3);
textcolor(0);
{i:=i-1;}
writeln(options[option+1]);
option:=option+1;
end else begin
gotoxy(4,grid_ref);
textcolor(7);
textbackground(0);
write(options[4]); {set to last option at the mo}
grid_ref:=grid_ref-3; {minus one less than total options}
gotoxy(4,grid_ref);
textcolor(0);
textbackground(3);
write(options[1]);
option:=option-3; {minus one less again}
end
end;
#72 : begin
if option>1 then begin
gotoxy(4,grid_ref);
textbackground(0);
textcolor(7);
write(options[option]);
inc(grid_ref);
gotoxy(4,grid_ref-2);
textbackground(3);
textcolor(0);
{i:=i;}
writeln(options[option-1]);
option:=option-1;
grid_ref:=grid_ref-2;
end else begin
gotoxy(4,grid_ref);
textcolor(7);
textbackground(0);
write(options[1]); {set to first option at the mo}
grid_ref:=grid_ref+3;
gotoxy(4,grid_ref);
textcolor(0);
textbackground(3);
write(options[4]);
option:=option+3;
end;
end;
end;
cows_come_home:=false;
until cows_come_home;
end;
(* ------------------------------------------------------------------------ *)
procedure run_wfc;
begin
init_ansi_file;
set_options;
menu;
end;
end.